/**
* Copyright 2024 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "common/common_test.h"
#include "ops/ops_func_impl/ones_like_ext.h"
#include "ops/test_ops.h"
#include "ops/test_value_utils.h"
#include "ops/test_ops_cmp_utils.h"

namespace mindspore {
namespace ops {
OP_FUNC_IMPL_TEST_DECLARE(OnesLikeExt, EltwiseOpParams);

OP_FUNC_IMPL_TEST_CASES(OnesLikeExt, testing::Values(
    EltwiseOpParams{{-1, 4, -1}, kFloat32, {-1, 4, -1}, kInt64, {CreateScalar<int64_t>(kNumberTypeInt64)}},
    EltwiseOpParams{{3, 4, 5}, kInt32, {3, 4, 5}, kFloat32, {CreateScalar<int64_t>(kNumberTypeFloat32)}},
    EltwiseOpParams{{-2}, kFloat32, {-2}, kInt32, {CreateScalar<int64_t>(kNumberTypeInt32)}}));
}  // namespace ops
}  // namespace mindspore
